<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<form name="searchform" action="" method="post"  style="margin:10px auto; width:99%;">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
        <div class="explain-col" style="text-align:left;">
			<?php echo '开始时间'; ?>:
			<?php echo form::date('search[start_time]','','')?> 
			<?php echo '开始时间';?>   
			<?php echo form::date('search[end_time]','','')?>    
            <input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
		</div>
		</td>
		</tr>
    </tbody>
</table>
</form>

<div class="table-list" style="width:99%; margin:auto;">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th width="35" align="center">商品名称</th>
			<th width="35%" align="center">订单号</th>
			<th width="10%" align="center">数量</th>
			<th width='10%' align="center">售价</th>
			<th width="15%" align="center">售出日期</th>
		</tr>
	</thead>
	<?php
    if(is_array($more_order) && !empty($more_order)){
        foreach($more_order as $info){
    ?>
        <tr>
            <td align="center"><?php echo $info['title'];?></td>
            <td align="center" width="10%"><?php echo $info['order_sn'];?></td>
            <td align="center" width="10%"><?php echo $info['number'];?></td>
            <td align="center" width="10%"><?php echo round($info['actual_price'],2);?> 元</td>
            <td align="center" width="10%"><?php echo date('Y-m-d h:m:s',$info['shipping_time']);?></td>
        </tr>
    <?php
        }
    }else if(empty($infos)) {
    ?>
        <tr>
            <td colspan="5" align="center">没有找到任何记录</td>
        </tr>
    <?php	
    }
    ?>
</table>
</div>
</body>
</html>